package com.tang.qzzp.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户头像实体类
 *
 * @author thq
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("userheader")
public class UserHeader implements Serializable {
    /**
     * 用户头像ID
     */
    private String userHeaderId;

    /**
     * 用户头像照片
     */
    private byte[] userHeaderPhoto;

    @TableField(value = "user_header_create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "user_header_update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(value = "user_header_version")
    private Integer version;
    @TableField(value = "user_header_is_deleted")
    @TableLogic
    private Integer deleted;
}
